package com.ziq.zcamp.bean.coupon

import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class RateOffWayInfo : ProguardKeep, Serializable {
    //最高可抵用金额，单位：分
    var max_money :Int? = null
    //订单金额满xx，单位：分
    var full_money : Int? = null
    //折扣,折扣百分比，例如：86为八六折。范围是10-99
    var rate : Int? = null

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as RateOffWayInfo

        if (max_money != other.max_money) return false
        if (full_money != other.full_money) return false
        if (rate != other.rate) return false

        return true
    }

    override fun hashCode(): Int {
        var result = max_money ?: 0
        result = 31 * result + (full_money ?: 0)
        result = 31 * result + (rate ?: 0)
        return result
    }


}